// 导入request
import request from '@/utils/request'
// 导入token
// import { getToken } from '../utils/token'
// 抽取方法--编辑用户信息
const editUserInfo = data => {
  return request({
    url: '/v1_0/user/profile',
    method: 'patch',
    // headers: {
    //   Authorization: `Bearer ${getToken().token}`
    // },
    data
  })
}
// 抽取方法--上传头像
const editUserAvator = fd => {
  return request({
    url: '/v1_0/user/photo',
    method: 'patch',
    // headers: {
    //   Authorization: `Bearer ${getToken().token}`
    // },
    data: fd
  })
}
// 暴露
export { editUserInfo, editUserAvator }
